package com.microservice.bus.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author:wesley
 */

@Component
@RabbitListener(queues = "hello")
public class Receiver {


    @RabbitHandler
    public void process(String hello){
        System.out.println("receiver : "+hello);
    }




}
